package com.maint.m

import java.io.Serializable

data class OperationTicketResponse(
    val statusCode: String,      // "200"
    val message: String,         // "成功"
    val result: PageData?        // 分页数据 ← 改成 result
)

data class PageData(
    val records: List<TicketItem>,
    val total: Int,
    val size: Int,
    val current: Int,
    val pages: Int
)

data class TicketItem(
    val id: String,
    val serialNumber: String,
    val stationName: String,
    val unit: String,
    val operationTask: String,
    val dispatchOrderNumber: String,
    val createTime: String,
    val operationItem: List<String>,
    val status: String? = null // 状态字段
) : Serializable

data class TicketDetailResponse(
    val statusCode: String,  // 改为 statusCode 并且是 String 类型
    val message: String,
    val result: TicketDetail?  // 使用 result 字段而不是 data
)

data class TicketDetail(
    val id: String,
    val serialNumber: String,  // 编号
    val stationName: String,  // 站名
    val unit: String,  // 单位
    val operationTask: String,   // 操作任务
    val dispatchOrderNumber: String, // 调令号
    val operationItem: List<String>,  // 操作项目
    val createTime: String,  // 创建时间
    val status: String? = null  // 状态
)

data class SaveTicketResponse(
    val result: String,
    val version: String,
    val message: String,
    val statusCode: String,
): Serializable
